import { DYNAMIC_TYPE } from '@/enum/dynamic';
import { ApiProperty } from '@nestjs/swagger';

export class DynamicDto {
  @ApiProperty({
    description: '动态类型',
    example: DYNAMIC_TYPE.PUNCH_THE_CLOCK,
    enum: DYNAMIC_TYPE,
  })
  type: number;

  @ApiProperty({
    description: '动态内容',
    example: '今天天气不错',
  })
  content: string;

  @ApiProperty({
    description: '动态图片(逗号分隔)',
    example: 'https://admin.com/test.png',
  })
  images: string;
}

export class DynamicDetailDto {
  @ApiProperty({
    description: '动态类型',
    example: DYNAMIC_TYPE.PUNCH_THE_CLOCK,
    enum: DYNAMIC_TYPE,
  })
  type: number;

  @ApiProperty({
    description: '动态内容',
    example: '今天天气不错',
  })
  content: string;

  @ApiProperty({
    description: '动态图片(逗号分隔)',
    example: 'https://admin.com/test.png',
  })
  images: string;
}
